Anomify API Documentation
Anomify AI Main Site | Anomify Documentation
This copy of our API documentation is no longer updated and may be inaccurate. Please go to http://api-docs.anomify.ai/.

/anomalies

/anomalies

/anomaly

/anomaly/lookup
/anomaly/train
/anomaly/{anomaly_id}

/billing

/billing/checkoutcallback
/billing/getcheckoutsession
/billing/getportalsession
/billing/history

/doc

/doc/openapi

/exclusion

/exclusion/add
/exclusion/delete
/exclusion/list
/exclusion/test
/exclusion/types

/image

/image/anomaly
/image/metric

/js

/js/eventsender

/login

/login

/login DEBUG 100

/login DEBUG 100

/login DEBUG 1069

/login DEBUG 1069

/login DEBUG STAGE

/login DEBUG STAGE

/login

/login/forgotpassword
/login/resetpassword
/login/validateclient

/match

/match/{match_id}
/match/{match_id}/graph
/match/{match_id}/motif/graph

/metric

/metric/{metric_name}
/metric/{metric_name}/anomalies
/metric/{metric_name}/anomalysummary
/metric/{metric_name}/bundle
/metric/{metric_name}/graph
/metric/{metric_name}/patterns
/metric/{metric_name}/timeseries
/metric/{metric_name}/yhat

/metrics

/metrics
/metrics/mostanomalous
/metrics/mostrecentlyanomalous
/metrics/mostrecentlymatched

/misc

/misc/phonecodes
/misc/timesince
/misc/timezones

/org

/org/adminalert/{alert_code}
/org/adminalerts
/org/channels
/org/events
/org/getquotametrics
/org/graph
/org/info
/org/removequotametrics
/org/stripecallback
/org/summary
/org/testmetrics
/org/update
/org/users

/pattern

/pattern/{pattern_id}
/pattern/{pattern_id}/disable
/pattern/{pattern_id}/matches
/pattern/{pattern_id}/timeseries

/patterns

/patterns/pending

/ping

/ping

/signup

/signup/demo
/signup/demo-orgs
/signup/selfserve
/signup/verify

/status

/status

/user

/user/delete
/user/info
/user/logout
/user/ping
/user/reportissue
/user/update
/user/updatepassword

/watcher

/watcher/create
/watcher/{watcher_id}/delete
/watcher/{watcher_id}/undelete
/watcher/{watcher_id}/update

/watchers

/watchers/chips
/watchers/list

Method: /metric/{metric_name}/graph

Detail

This method is not available to demo user accounts.

Return a graph in either PNG or JSON format as requested.

Parameters

Key Required Example Description
from yes 1593696120 Timestamp
until yes 1594301179 Timestamp - defaults to current time if not provided)
display_anomalies no true or false Whether to show anomalies (defaults to false if not provided)
display_matches no true,false Whether to show matches (defaults to false if not provided)
display_x_axis no above,below,both,neither Whether and where to display a x-axis (default to "below" if not provided)
display_y_axis no left,right,both,neither Whether and where to display a y-axis (default to "right" if not provided)
display_legend no true,false Whether to display a legend (default to true if not provided)
anomaly_id no 12345 An optional anomaly to highlight
context no string An optional indicator which can affect the type of graph returned
match_id no 67890 An optional match to highlight
format no json,png Preferred output format
width no number An optional integer from 1 upwards. Does not apply to JSON output.
height no number An optional integer from 1 upwards. Does not apply to JSON output.
aspect_ratio no number An optional integer from 1 upwards, defaults to "2" if not set

Note that any combination of two items from width, height, aspect_ratio can be provided, and the third will be calculated. If all three are provided, width and height will be used, the aspect_ratio will be re-calculated from those.

The metric name is specified in the URL, e.g.

/metric/stats.zpf-controller-dev-5-96g-luk1.cpu.system/bokehdata

Example JSON Output

Note that this method can also return a PNG image.

{
    "status": { ... see /login method for status block structure ... },
    "data": {
        "bokehjson": "{ ... }"
    }
}

Live Request

URL: /metric//graph

You need to be logged in to your Anomify account to to make live API requests.

Please log in here or sign up to Anomify

Email
Password

Live request results will appear here.